<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Page-3</title>
</head>
<body>
	<%!
		public String dollar;
		public String rate;
	%>
	<% 
		dollar = request.getParameter("dollar");
		rate = request.getParameter("rate");
		float rmb = Float.parseFloat(dollar) * Float.parseFloat(rate);
		out.println("美元价格为：" + request.getParameter("dollar"));
		out.println("汇率为：" + request.getParameter("rate"));
		out.println("人民币价格为：" + rmb);
	%>
</body>
</html>